<template>
  <div class="togetherDonate">
    <div class="head">
      <i class="iconfont head-icon" @click="comeback">&#xe689;</i>
      <span style="font-size: 18px">一起捐汇总</span>

    </div>
    <div class="tab" id="tab">
      <tab :line-width="3" custom-bar-width="40px" bar-active-color="#1AAC19" >
        <tab-item selected @on-item-click="witchShow('geren')">个人一起捐</tab-item>
        <tab-item @on-item-click="witchShow('tuanti')">团体一起捐</tab-item>
        <tab-item @on-item-click="witchShow('qiye')">企业一起捐</tab-item>
      </tab>
    </div>
     <!--<div class="zhu"></div>-->
    <!--<div class="ren">-->
      <!--<ul>-->
        <!--<li>-->
          <!--<div class="sds">-->
            <!--<span style="color: #d7f6b3;font-size: 16px;">一起捐发起者/位</span>-->
            <!--<p style="font-size: 25px;color:#FFFFFF">24</p>-->
          <!--</div>-->
        <!--</li>-->
        <!--<li>-->
          <!--<div class="sds">-->
            <!--<span style="color: #d7f6b3;font-size: 16px;font-weight: 500">捐赠人/位</span>-->
            <!--<p style="font-size: 25px;color:#FFFFFF">22</p>-->
          <!--</div>-->
        <!--</li>-->
      <!--</ul>-->
    <!--</div>-->
    <div v-if="tolist.length > 0" v-for="tolists in tolist">
      <div class="fff-box">
        <div class="ff-box">
          <div class="ffimg-box">
            <div class="ff-img">
              <img v-if="typeof(tolists.headUrl) == 'string' && tolists.headUrl != '' && tolists.headUrl.indexOf('http') != -1" :src="tolists.headUrl" alt="">
              <img v-else-if="typeof(tolists.headUrl) == 'string' && tolists.headUrl != '' && tolists.headUrl.indexOf('http') == -1" :src="imageUrl.imageUrl + tolists.headUrl" alt="">
              <img v-else="" src="../../images/morentouxiang02.jpg" alt="">
            </div>
            <div class="ff-li">
              <p class="li_1">
                <span @click="goTogetherDonate(tolists.id)">
                    <span class="mingcheng" style="font-size: 16px;">{{tolists.name}}</span>
                    &nbsp;&nbsp;<span class="mingcheng">({{tolists.nickname}}发起)</span>
                </span>
              </p>
              <p class="li_2" style="font-size: 12px">和{{tolists.person}}位小伙伴共筹{{tolists.donateMoney}}元</p>
            </div>
          </div>
          <div class="liuyan" v-if="tolists.content != ''">
            <div class="lkiu">
              <div class="dd" style="font-size: 15px;font-weight: bold">说明：</div>
              <div class="inp">{{tolists.content}}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <p class="zan" v-if="tolist.length <=0">{{messageText}}</p>
    </div>

</template>
<style lang="scss" src="./togetherDonate.scss"></style>
<script src="./togetherDonate.js"></script>
